<template>
    <div id="app">
        <mt-header fixed title="打卡管理系统">
            <mt-button v-on:click="goBack" slot="left" icon="back">返回</mt-button>
            <mt-button v-on:click="refresh" slot="right">刷新</mt-button>
        </mt-header>
        <router-view name="Main"></router-view>
        <Tabbar></Tabbar>
    </div>
</template>

<script>
import Tabbar from '@/components/Tabbar.vue'

export default {
    name: 'App',
    components: {
        Tabbar
    },
    methods: {
        goBack() {
            this.$router.back()
        },
        refresh() {
            window.location.reload();
        }
    }
}
</script>

<style>
    #app {
        color: #2c3e50;
        margin-top: 40px;
        padding-bottom:60px;
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
</style>
